package net.googlecode.kharchenko.service.impl;

import net.googlecode.kharchenko.dao.impl.InfPortionDAOImpl;
import net.googlecode.kharchenko.dao.InfPortionDAO;
import net.googlecode.kharchenko.models.InfPortion;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import net.googlecode.kharchenko.service.InfoService;

import java.util.List;


@Service
public class InfoServiceImpl implements InfoService {

    @Autowired
    private InfPortionDAO portionDAO;

    @Transactional(readOnly = true)
    public List<InfPortion> getallInfo(){
        return portionDAO.getAllInfo();

    }

}
